import { Get,Post } from '../index'

export default {
  getFileList(params) {
    return new Post('/images/getFiles',params)
  },
  uploadImage(params) {
    return new Post('/images/upload',params)
  },
  deleteImage(params) {
    return new Post('/images/delete',params)
  },
  getDetail(params) {
    return new Post('/images/getDetail',params)
  },
  setTag(params) {
    return new Post('/images/setTag',params)
  },
  removeTag(params) {
    return new Post('/images/removeTag',params)
  },
  getTagList(params) {
    if (params) {
      return new Get(`/images/getTagList/${params}`)
    }
    return new Get('/images/getTagList')
  },
  processImage(params) {
    return new Post('/images/processImage',params)
  }
}
